#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

void Qsort(int ch[], int sz)
{
	for (int i = 1; i <=sz - 1; i++)
	{
		int j = 0;
		for (j = 0; j < sz - i; j++)
		{
			if (ch[j] > ch[j + 1])
			{
				int tmp = ch[j];
				ch[j] = ch[j + 1];
				ch[j + 1] = tmp;
			}
		}
	}
}

int main()
{
	int ch[10] = { 1,6,3,2,4,9,7,5,8,5 };
	int sz = sizeof(ch) / sizeof(ch[0]);
	Qsort(ch, sz);
	for (int i = 0; i < sz; i++)
		printf("%d ", ch[i]);
	return 0;
}